package com.fs.controller;

import com.fs.entity.Admins;
import com.fs.entity.Attractions;
import com.fs.service.AdminsService;
import com.fs.util.RedisCache;
import com.fs.util.ResponseData;
import com.fs.util.ResponseDataUtil;
import com.fs.vo.LoginAdmins;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 管理员 */
@RestController
public class AdminsController
{
    @Autowired
    private AdminsService adminsService;
    @RequestMapping("/getInfo")
    public ResponseData getInfo(int id)
    {
        Admins admins = adminsService.selectById(id);
        return ResponseDataUtil.buildOk(admins);
    }
}
